package com.sx.dao;

import com.sx.pojo.Category;

public interface CategoryDao {
    //判断类别编号是否存在
    public boolean checkIdExists(String id);

    //添加类别
    boolean addCategory(Category category);

    //删除类别
    boolean deleteCategoryById(String id);

    //根据编号获取类别
    Category getCategoryById(String id);

    //更新类别
    boolean updateCategory(Category category);
}
